<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <title>资源信息</title>
    <link rel="stylesheet" type="text/css" href="../css/api.css" />
    <link rel="stylesheet" type="text/css" href="../css/aui.css" />
    <link rel="stylesheet" type="text/css" href="../css/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="css/comm.css" />
    <link rel="stylesheet" type="text/css" href="css/form.css" />
    <style>
        .work_title {
            margin: 15px 0px 15px 0px;
        }

        .sourse-bg {
            background: #F6FBFF;
            border-radius: 8px;
            padding: 10px;
            color: #344356;
            padding-left: 14px;
            font-size: 0.7rem;
        }

        .pdl0 {
            padding-left: 0;
        }

        .mr10 {
            margin-right: 10px;
        }

        .width50 {
            width: 50%;
            display: inline-block;
        }

        .width-flex {
            display: flex;
            position: relative;
        }

        .pb4 {
            padding-bottom: 4rem !important;
        }

        .posright {
            position: absolute;
            right: 0px;
            top: 0;
        }

        .divhidden {
            display: none;
        }

        .aui_formtitle {
            min-width: 6rem;
        }

        .aui_formcontent,
        .aui_formcontent input,
        .aui_formcontent textarea {
            text-align: right;
        }

        .aui_formcontent select {
            width: auto;
            float: right;
            margin-right: 10px;
        }

        .aui_formcontent textarea {
            line-height: 2.5rem;
        }

        textarea::placeholder {
            font-size: 0.8rem;
        }

        .textleft {
            text-align: left;
        }

        .cover_bg {
            position: fixed;
            top: 0;
            bottom: 0;
            width: 100%;
            z-index: 999;
            background: rgba(0, 0, 0, 0.5);
        }

        .tag_content {
            position: fixed;
            z-index: 1000;
            height: 20rem;
            margin-top: -10rem;
            top: 50%;
            left: 10%;
            right: 10%;
            background: #fff;
            padding: 1rem 0.8rem 2rem 1rem;
            overflow: hidden;
        }
        .tag_box{
            height: 15rem;
            overflow-y: auto;
        }
        .tag_item {
            background: #daeff7;
            border: solid 1px #daeff7;
            border-radius: 5px;
            margin: 0 5px 5px 0;
            color: #808080;
            padding: 0 5px;
            display: inline-block;
            line-height: 25px;
            height: 25px;
        }

        .tag_item.isActive {
            color: #0079fe;
        }

        .aui_tag_bottombtn {
            position: absolute;
            bottom: 5px;
            left: 10px;
            right: 10px;
        }

        .tag_close {
            position: absolute;
            top: 5px;
            right: 5px;
        }
    </style>
</head>

<body>
    <div id="app" v-cloak>
        <div class="aui-content pb4">
            <div class="aui_list boxarea mb20">
                <div class="work_title">资源详情 <i v-if="!dynamicData" v-on:click="edit()"
                        class="icon iconfont icon-bianji ccc fr"></i></div>
                <div class="aui_formbox" v-bind:class="{'edit':dynamicData}">
                    <div vi-if="list.length>0" class="aui_formitem" v-for="(item,index) in list">
                        <div class="aui_formtitle"  v-if="item.classType!=8||staticData">{{item.title}}</div>
                        <div v-if="staticData" class="aui_formcontent">
                            <span v-if="item.classType!=8">{{item.text}}</span>
                            <label v-on:click="do_edit_tag(item)" v-if="item.classType==8">
                                <span v-for="itemOption in item.options"
                                    class="tag_item isActive">{{itemOption.name}}</span>
                                <span>
                                    <i class="icon iconfont icon-add"></i>
                                </span>
                            </label>
                        </div>
                        <div v-if="dynamicData" class="aui_formcontent">

                            <input v-if="item.classType==1" v-model="form[item.id]" type="text" placeholder="请填写" />

                            <select v-if="item.classType==2" v-model="form[item.id]" placeholder="请选择">
                                <option v-for="itemop in item.options" v-bind:value="itemop.id">{{itemop.name}}</option>
                            </select>
                            <span v-if="item.classType==2" class="posright fr"> <i
                                    class="icon iconfont icon-xiangyoujiantou ccc"></i></span>

                            <input v-if="item.classType==3" v-model="form[item.id]" type="text"
                                v-on:click="do_select_time(item)" readonly="readonly" placeholder="请选择" />

                            <label v-if="item.classType==4">{{form[item.id]}}</label>
                            <span v-if="item.classType==5" class="ccc">{{form[item.id]}}</span>
                            <textarea v-if="item.classType==6" rows="5" v-model="form[item.id]"
                                placeholder="请填写"></textarea>
                            <!-- <label v-on:click="do_edit_tag(item)" v-if="item.classType==8">
                                <span v-for="itemOption in item.options"
                                    class="tag_item isActive">{{itemOption.name}}</span>
                                <span>
                                    <i class="icon iconfont icon-add"></i>
                                </span>
                            </label> -->
                        </div>
                    </div>
                </div>
            </div>
            <div v-if="!dynamicData&&relationlist.length>0" class="aui_list boxarea mb20">
                <div class="work_title">关联资源 </div>
                <div class="sourse-bg mb10" v-for="(item,index) in relationlist">
                    <div class="width-flex mb10">
                        <div class="aui_formtitle pdl0" style="min-width: 60px;">资源位置</div>
                        <div class="aui_formcontent textleft">{{item.fullName}}</div>
                    </div>
                    <div class="width-flex mb10">
                        <div class="aui_formtitle pdl0" style="min-width: 60px;">资源编号</div>
                        <div class="aui_formcontent textleft">{{item.name==''?'无':item.name}}</div>
                    </div>
                    <div class="width-flex mb10">
                        <div class="aui_formtitle pdl0" style="min-width: 60px;">资源状态</div>
                        <div class="aui_formcontent textleft">{{item.stateName==''?'无':item.stateName}}</div>
                    </div>
                </div>
            </div>
        </div>
        <div v-if="dynamicData" class="aui_bottom">
            <div v-on:click="save()" class="aui_bottombtn">保存</div>
        </div>
        <div v-if="show_cover" class="cover_bg" v-on:click="do_close_tag()">
        </div>
        <div v-if="show_cover" class="tag_content">
            <div class="tag_close" tapmode v-on:click="do_close_tag()">
                <i class="icon iconfont icon-guanbi"></i>
            </div>
            <div class="tag_box">
                <label class="tag_item" v-on:click="do_select_tag(item)" v-bind:class="{'isActive':item.isSelected}"
                    v-for="item in tagList">{{item.name}}</label>
                <div v-on:click="saveTag()" class="aui_bottombtn aui_tag_bottombtn">保存</div>
            </div>
        </div>
    </div>
</body>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript" src="../script/aui-toast.js"></script>
<script type="text/javascript" src="../script/aui-actionsheet.js"></script>
<script type="text/javascript" src="../script/config.js"></script>
<script type="text/javascript" src="../script/common.js"></script>
<script type="text/javascript " src="../script/vue.js "></script>
<script type="text/javascript" src="js/resources_detail.js"></script>

</html>